package lab.galaxy.demeHookPlugin;

import android.util.Log;

import java.lang.StringBuffer;


/**
 * Created by liuruikai756 on 31/03/2017.
 */

public class Hook_StringBuffer_toString {
    public static String className = "java.lang.StringBuffer";
    public static String methodName = "toString";
    public static String methodSig = "()Ljava/lang/String;";
    public static String hook(StringBuffer thiz) {
        String str = origin(thiz);
        
        if(!str.contains("Ystr"))
            Log.w("YAHFA", "Ystr: Buffer: "+str);
        
        return str;
    }

    public static String origin(StringBuffer thiz) {
        Log.w("YAHFA", "should not be here");
        return "";
    }

}
